// vpc variables
variable "create" {
  description = "Whether to create vpc. If false, you can specify an existing vpc by setting 'vpc_id'."
  type        = bool
  default     = true
}

variable "vpc_id" {
  description = "The vpc id used to launch several vswitches. If set, the 'create' will be ignored."
  type        = string
  default     = ""
}

variable "vpc_name" {
  description = "The vpc name used to launch a new vpc."
  type        = string
  default     = "TF-vpc"
}

variable "vpc_cidr" {
  default = "10.0.0.0/8"
}

variable "resource_group_id" {
  description = "The Id of resource group which the instance belongs."
  type        = string
  default     = ""
}

variable "vpc_description" {
  description = "The vpc description used to launch a new vpc."
  type        = string
  default     = "A new VPC created by Terrafrom module terraform-alicloud-vpc"
}

variable "vpc_tags" {
  description = "The tags used to launch a new vpc. Before 1.5.0, it used to retrieve existing VPC."
  type        = map(string)
  default     = {}
}

# VSwitch variables
variable "vswitch_cidrs" {
  description = "List of cidr blocks used to launch several new vswitches. If not set, there is no new vswitches will be created."
  type        = list(string)
  default     = ["10.0.1.0/24", "10.0.1.0/24", "10.0.1.0/24"]
}

variable "availability_zones" {
  description = "List available zones to launch several VSwitches."
  type        = list(string)
  default     = ["cn-hangzhou-b", "cn-hangzhou-d", "cn-hangzhou-e"]
}

variable "vswitch_name" {
  default = "alicloud"
}

variable "vswitch_tags" {
  description = "The tags used to launch serveral vswitches."
  type        = map(string)
  default     = {}
}

# Nat Gateway
variable "enabled_nat_gateway" {
  type = bool
  default = false
}

variable "nat_gateway_name" {
  type = string
  default = ""
}

variable "nat_gateway_tags" {
  description = "The tags used to launch serveral vswitches."
  type        = map(string)
  default     = {}
}